let registerApp=new Vue({
    el:'#registerApp',
    methods:{
        register: function () {
       // alert("准备注册提交！")
            $.ajax({
                url: "/portal/user/reg/student",
                data: $("#form-reg").serialize(),
                type: 'post',
                success: function (r) {
                    if(r.state==2000){
                        alert("注册成功！")
                    }else {
                        alert(r.message)
                    }
                }
                });
        }
    }
});